public RTecAllInfo GetTecAllInfo(string code) { RTecAllInfo result = new RTecAllInfo(); result.TecInfo = Get(code); result.TecSkillList = GetTecSkillList(code); return(result); }
public IActionResult OnPostSave(RTecAllInfo obj) { ResultNormal result = new ResultNormal(); try { _TecSrv.UpdatePartTecInfo(obj.TecInfo, false); if (obj.TecSkillList != null) { foreach (var sk in obj.TecSkillList) { _TecSrv.UpdateTecSkillLevel(sk, false); } } _TecSrv.SaveChanges(); } catch (Exception ex) { result.ErrorMsg = ex.Message; } return(new JsonResult(result)); }