public IActionResult AddRelease(ReleaseDto releaseDto) { //创建PeopleBo PeopleBo peopleBo = _boProvider.GetPeopleBo(releaseDto.PeopleId); peopleBo.CheckreleaseDto(releaseDto); var adminUserBo = _boProvider.GetAdminUserBo(); var results = adminUserBo.checkEmail(releaseDto.Email); //添加约会记录 peopleBo.AddRelease(releaseDto); return(Ok(results)); }
/// <summary> /// 通过邮箱重置密码 /// </summary> /// <param name="peopleBo"></param> /// <returns></returns> internal bool ResetPassword(PeopleBo peopleBo) { _context.Update(peopleBo.People); _context.SaveChanges(); return(true); }