public ActionResult <ItemResponse <int> > Add(VenueAddRequest model) { int code = 200; BaseResponse response = null; try { int userId = _authService.GetCurrentUserId(); int id = _service.Add(model, userId); response = new ItemResponse <int>() { Item = id }; } catch (Exception ex) { code = 500; response = new ErrorResponse(ex.Message); base.Logger.LogError(ex.ToString()); } return(StatusCode(code, response)); }