I am performing asp.net mvc entity framework with webapi and when I m deleting a record but get an error.
when I m debugging in watch windows
Name value
PartyMstId 4 partymstcontroller.cs (mvc project)
partyMst null partymstcontroller.cs (webapi project)
db.PartyMsts.Find (partyMst.PartyMstId); here give an null value ?
partyMst model null when entering the contoller action
public int PartyMstId { get; set; } //when dubugger come here then 0
- namespace WebParty.Models
- {
- public class partymstmodel
- {
- public int PartyMstId { get; set; }
plz help???