public JsonResult Update(StatusViewModel model)
        {
            try
            {
                StatusModel statusModel = statusBll.GetModel(model.Status);
                statusModel.Status      = model.Status;
                statusModel.StatusGroup = model.StatusGroup;
                statusModel.StatusDesc  = model.StatusDesc;

                statusBll.Update(statusModel);
                return(Json(new { code = 200 }));
            }
            catch (Exception ex)
            {
                return(Json(new { code = 500, msg = ex.Message }));
            }
        }
        public JsonResult Insert(StatusViewModel model)
        {
            try
            {
                StatusModel statusModel = new StatusModel();
                statusModel.Status      = model.Status;
                statusModel.StatusGroup = model.StatusGroup;
                statusModel.StatusDesc  = model.StatusDesc;

                statusBll.Insert(statusModel);
                return(Json(new { code = 200 }));
            }
            catch (Exception ex)
            {
                return(Json(new { code = 500, msg = ex.Message }));
            }
        }