示例#1
0
 public IResult Update(Profile profile, int reqUserId)
 {
     if (!AuthorHelper.OwnerAccess(profile.UserId, reqUserId))
     {
         return(new Result(false, Messages.OwnerAccess));
     }
     _profileDal.Update(profile);
     return(new Result(true, Messages.Updated));
 }
示例#2
0
 public int Update(Profile profile)
 {
     return(_profileDal.Update(profile));
 }
示例#3
0
 public bool Update(Profile profile)
 {
     return(_profileDal.Update(profile));
 }