Ejemplo n.º 1
0
        public Response <List <Dropdown> > GetPLRTypeByClaimId(PLRVM plrVM)
        {
            Response <List <Dropdown> > response     = new Response <List <Dropdown> >();
            List <Dropdown>             dropDownList = new List <Dropdown>();

            try
            {
                int claimId = Convert.ToInt32(plrVM.ClaimId);
                dropDownList = PLRDAO.GetPLRTypeByClaimId(claimId);

                response.Status  = ResultStatus.Success;
                response.Message = "Success";
                response.Data    = dropDownList;
            }
            catch (Exception ex)
            {
                LoggerService.LogException(ex);

                response.Status  = ResultStatus.Error;
                response.Message = "Error";
                response.Data    = dropDownList;
            }

            return(response);
        }
Ejemplo n.º 2
0
        public ActionResult GetPLRTypes(PLRVM plrVM)
        {
            Response <List <Dropdown> > response = _plrService.GetPLRTypeByClaimId(plrVM);

            return(Json(new Result
            {
                Status = response.Status,
                Message = response.Message,
                Data = response.Data
            }, JsonRequestBehavior.AllowGet));
        }