public ActionResult <SuccessResponse> Update(VenueUpdateRequest model) { int code = 200; BaseResponse response = null; try { int userId = _authService.GetCurrentUserId(); _service.Update(model, userId); response = new SuccessResponse(); } catch (Exception exception) { code = 500; response = new ErrorResponse(exception.Message); base.Logger.LogError(exception.ToString()); } return(StatusCode(code, response)); }