/// <summary> /// Returns successful json based on the success flag, error message and the data to return /// </summary> /// <param name="isSuccessful">The flag to set if the result is true or false</param> /// <param name="errorMessage">The error message</param> /// <param name="outputData">Data to return</param> /// <returns>ActionResult</returns> protected internal ActionResult Successful(bool isSuccessful, string errorMessage, object outputData) { return(SuccessfulResult.SuccessfulJSONResult(isSuccessful, errorMessage, outputData)); }
/// <summary> /// Returns successful json result /// </summary> /// <returns>ActionResult</returns> protected internal ActionResult Successful() { return(SuccessfulResult.SuccessfulJSONResult()); }
/// <summary> /// Returns successful json result based if it's successful and the error message /// </summary> /// <param name="isSuccessful">boolean if the result is successful</param> /// <param name="errorMessage">The error message if any</param> /// <returns>ActionResult</returns> protected internal ActionResult Successful(bool isSuccessful, string errorMessage) { return(SuccessfulResult.SuccessfulJSONResult(isSuccessful, errorMessage)); }
/// <summary> /// Returns successful json result that is successful and return data /// </summary> /// <param name="outputData">Data to return</param> /// <returns>ActionResult</returns> protected internal ActionResult Successful(object outputData) { return(SuccessfulResult.SuccessfulJSONResult(outputData)); }