public WorkerInfo EditWorkerInfo(ProfileWorker profile, WorkerInfo workerInfo) { workerInfo.RatePerHour = profile.ratePerHour; return(workerInfo); }
public ProfileWorker creation(UserInfo userInfo, WorkerInfo workerInfoData, List <RatingWorker> ratings, List <PostAProject> projects) { var profile = new ProfileWorker(); profile.UserId = userInfo.UserId; profile.FristName = userInfo.FristName; profile.LastName = userInfo.LastName; profile.Email = userInfo.Email; profile.DateofBrith = userInfo.DateofBrith; profile.JoinDate = userInfo.JoinDate; profile.ProPic = userInfo.ProPic; profile.City = userInfo.City; profile.State = userInfo.State; profile.Country = userInfo.Country; profile.UserType = userInfo.UserType; profile.Balance = userInfo.Balance; profile.ratePerHour = workerInfoData.RatePerHour; profile.PostAProject = projects; foreach (var v in ratings) { CommunicationSkill.Add(v.CommunicationSkill); OnBudget.Add(v.OnBudget); OnTime.Add(v.OnTime); Behaviour.Add(v.Behaviour); Completeness.Add(v.Completeness); } profile.CcommunicationSkill = _communictionSkill; profile.OonTime = _onTime; profile.OonBudget = _onBudget; profile.Bbehaviour = _behaviour; profile.Ccompleteness = _completeness; profile.tot = TotalRating; return(profile); }
public UserInfo EditUserInfo(ProfileWorker profile, UserInfo userInfo) { userInfo.FristName = profile.FristName; userInfo.LastName = profile.LastName; userInfo.City = profile.City; userInfo.State = profile.State; userInfo.Country = Country; if (profile.ConPassword != null) { userInfo.Password = profile.Password; } return(userInfo); }