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)); }
public int Update(Profile profile) { return(_profileDal.Update(profile)); }
public bool Update(Profile profile) { return(_profileDal.Update(profile)); }