예제 #1
0
        protected ActionResult GetResponse(object result = null)
        {
            if (IsValidOperation())
            {
                return(Ok(new ApiResponse(result, "The resource has been fetched successfully")));
            }

            return(BadRequest(new ApiResponse(_notifications.GetNotificationErrors())));
        }