public bool AddAuthInfo(SingerAuthParam singer) { string sql = $@"update SingerDetailInfo set SingerName='{singer.SingerName}', SingerTypeId={singer.SingerTypeId},HeadImg='{singer.HeadImg}',IdCardNo='{singer.IdCardNo}', IdCardFront='{singer.IdCardFront}',IdCardBack='{singer.IdCardBack}',Introduce='{singer.Introduce}', Authentication={1} where UserId={singer.SingerId}"; return(helper.Execute(sql) > 0 ? true : false); }
public ResponseResultDto <bool> AddAuthInfo(SingerAuthParam singer) { var result = singerAuthRepository.AddAuthInfo(singer); return(new ResponseResultDto <bool> { IsSuccess = result, ErrorMessage = string.Empty, Result = result }); }