Ejemplo n.º 1
0
        public ActionResult GetLedgerNature(int groupId)
        {
            var group  = groupService.GetById(groupId);
            var nature = service.CheckDrOrCr(group.Nature);

            return(Json(nature, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 2
0
        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));
        }