public ActionResult GetLedgerNature(int groupId) { var group = groupService.GetById(groupId); var nature = service.CheckDrOrCr(group.Nature); return(Json(nature, JsonRequestBehavior.AllowGet)); }
public ActionResult GetById(int groupId) { AccountGroup category = service.GetById(groupId); if (category == null) { return(HttpNotFound()); } var result = AutoMapper.Mapper.Map <AccountGroup, AccountGroupResponse>(category); return(Json(result, JsonRequestBehavior.AllowGet)); }