public ActionResult DeleteAssignWorkShift(DataSourceLoadOptions loadOptions, string value)
        {
            try
            {
                var deleteAssignWorkShift = new AssignWorkShiftViewModel();
                JsonConvert.PopulateObject(value, deleteAssignWorkShift);

                deleteAssignWorkShift.UpdateBy = UserDetail.UserID;
                DeleteWorkShiftByEmpResult result = MasterService.DeleteAssignWorkShiftByEmp(deleteAssignWorkShift.ToEntity());

                return(Content(JsonConvert.SerializeObject(GetMsgFromDeleteActionResult(result)), ConstantValues.JSON_CONTENT_TYPE));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        public DeleteWorkShiftByEmpResult GetMsgFromDeleteActionResult(DeleteWorkShiftByEmpResult result)
        {
            try
            {
                if (result.ErrorCode == "0")
                {
                    result.ErrorMessage = MessageListResource.I0002;
                }
                else if (result.ErrorCode == "1")
                {
                    result.ErrorMessage = String.Format(MessageListResource.E0004, "Assign Work Shift");
                }
                else if (result.ErrorCode == "9")
                {
                    result.ErrorMessage = String.Format(MessageListResource.E0003, "delete", result.ErrorMessage);
                }

                return(result);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }