예제 #1
0
        public ActionResult GetLedgerNature(int groupId)
        {
            var group  = groupService.GetById(groupId);
            var nature = service.CheckDrOrCr(group.Nature);

            return(Json(nature, JsonRequestBehavior.AllowGet));
        }
예제 #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));
        }