public void AddDefendantDecision(vw_DefendantsDecisionData Defendants) { Cases_DefendantsDecision DefObj = new Cases_DefendantsDecision(); DefObj.CaseDefendantId = Defendants.CaseDefendantId; DefObj.IsGuilty = Defendants.IsGuilty; DefObj.SessionDessionId = Defendants.SessionDessionId; DefObj.PunishmentDetails = Defendants.PunishmentDetails; DefObj.PunishmentType = Defendants.PunishmentType; DefObj.RestrictionNo = Defendants.RestrictionNo; DefObj.RestrictionYear = Defendants.RestrictionYear; DefObj.CreatedAt = DateTime.Now; DefObj.CreatedBy = "xx"; this.Add(DefObj); this.Save(); }
public void AddDefendantDecision(vw_DefendantsDecisionData Defendants) { DefendantsDecisionRepository.AddDefendantDecision(Defendants); }