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()))); }
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()))); }