コード例 #1
0
        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));
        }
コード例 #2
0
 /// <summary>
 /// 通过邮箱重置密码
 /// </summary>
 /// <param name="peopleBo"></param>
 /// <returns></returns>
 internal bool ResetPassword(PeopleBo peopleBo)
 {
     _context.Update(peopleBo.People);
     _context.SaveChanges();
     return(true);
 }