public IActionResult Update(ActionType actionType) { var result = _actionTypeService.Update(actionType); if (result.Success) { return(Ok(result.Message)); } return(BadRequest(result.Message)); }
public IActionResult Edit(ActionTypeDto actionTypeDto) { var response = new ResponseViewModel(); response = _actionTypeService.Update(actionTypeDto); if (!response.IsSuccess) { return(BadRequest(response)); } return(Ok(response)); }