Пример #1
0
        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);
        }
Пример #2
0
        public ResponseResultDto <bool> AddAuthInfo(SingerAuthParam singer)
        {
            var result = singerAuthRepository.AddAuthInfo(singer);

            return(new ResponseResultDto <bool>
            {
                IsSuccess = result,
                ErrorMessage = string.Empty,
                Result = result
            });
        }