private JsonResult GetStandardError(BaseErrors.ERROR_NUMBER errorNumber, string username, string password) { JsonResult jsonResult = new JsonResult(); BaseResponse baseResponse = new BaseErrors()[(int)errorNumber]; baseResponse.Username = username; baseResponse.Userpassword = password; jsonResult.Data = baseResponse; return(jsonResult); }
private JsonResult GetStandardError(BaseErrors.ERROR_NUMBER errorNumber, string username, string pad = null) { JsonResult jsonResult = new JsonResult(); BaseResponse baseResponse = new BaseErrors()[(int)errorNumber]; if (pad != null) { baseResponse.StatusReply += pad; } baseResponse.Username = username; jsonResult.Data = baseResponse; return(jsonResult); }