public IActionResult EditStatus(ShiftEditStatusModel shift) { ShiftBusiness shiftBusiness = new ShiftBusiness(); var result = shiftBusiness.EditStatus(shift); return(Ok(result)); }
public async Task <ActionResult> EditStatus(ShiftEditStatusModel Shift) { Shift.EditBy = _userSessionHelper.GetUserSession().UserName; string apiUrl = _appUrlHelper.GetApiUrl(ApiUrlPath.SHIFT_EDIT_STATUS); var result = await HttpUtilities.PostAsyncApi <ReturnResult <Shift> >(apiUrl, JsonConvert.SerializeObject(Shift)); return(Json(result)); }
public ReturnResult <Shift> EditStatus(ShiftEditStatusModel mouse) { DbProvider dbProvider = new DbProvider(); string outCode = String.Empty; string outMessage = String.Empty; StoredProcedureConfigs <Shift> storedProcedureConfigs = new StoredProcedureConfigs <Shift>(); dbProvider.SetQuery(storedProcedureConfigs._UPDATE_STATUS_STORED_PROCEDURE, CommandType.StoredProcedure) .SetParameter("Id", SqlDbType.NVarChar, mouse.Id, 100, ParameterDirection.Input) .SetParameter("Status", SqlDbType.Int, mouse.Status, ParameterDirection.Input) .SetParameter("EditBy", SqlDbType.NVarChar, mouse.EditBy, ParameterDirection.Input) .SetParameter("ERROR_CODE", SqlDbType.NVarChar, DBNull.Value, 100, ParameterDirection.Output) .SetParameter("ERROR_MESSAGE", SqlDbType.NVarChar, DBNull.Value, 400, ParameterDirection.Output) .ExcuteNonQuery() .Complete(); dbProvider.GetOutValue("ERROR_CODE", out outCode) .GetOutValue("ERROR_MESSAGE", out outMessage); return(new ReturnResult <Shift>() { ErrorCode = outCode, ErrorMessage = outMessage, }); }
public ReturnResult <Shift> EditStatus(ShiftEditStatusModel mouse) { return(ShiftDAL.EditStatus(mouse)); }