public async Task <ActionResult> RegisterBaseInfo(BaseInfoViewModel baseInfoViewModel) { if (baseInfoViewModel.nType == -1) { return(Json(new TData { Tag = 0, Message = "请选择人员类型", })); } TData <string> obj = await baseInfoBLL.RegisterBase(baseInfoViewModel); return(Json(obj)); }
public async Task <HospMonData> Register([FromBody] BaseInfoViewModel baseInfoViewModel) { var AutReturn = await this.Authentication(new ParameterIn { sId = baseInfoViewModel?.sId }); if (AutReturn.Code == 00) { HospMonData hospMonData = new HospMonData(); var data = await baseInfoBLL.RegisterBase(baseInfoViewModel); hospMonData.Code = data.Tag; hospMonData.Message = data.Message; return(hospMonData); } return(AutReturn); }
public async Task <ActionResult> RegisterBaseInfo(BaseInfoViewModel baseInfoViewModel) { TData <string> obj = await baseInfoBLL.RegisterBase(baseInfoViewModel); return(Json(obj)); }