using HHWMS.Web.Models; using Microsoft.AspNetCore.Mvc; using WalkingTec.Mvvm.Mvc; namespace HHWMS.Web { public abstract class ApiController : BaseApiController { protected JsonResult ApiResult(object data = null, string msg = "success") { return new JsonResult(new ApiJsonResult { Data = data, Success = true, Msg = msg }); } protected JsonResult ApiResultError(object data = null, string msg = "failed") { return new JsonResult(new ApiJsonResult { Data = data, Success = false, Msg = msg }); } } }