public static void NotifyMissionOwnerMissionWasTaken(int missionId, string takenBy)
 {
     var missionDal = new MissionsDal();
     string ownerLogin = missionDal.GetMissionOwnerLoginName(missionId);
     string missionName = missionDal.GetMissionName(missionId);
     var ownerMail = Account.AuthProvider.GetMailByLogin(ownerLogin);
     var ownerName = Account.AuthProvider.GetUserFullNameByDomainIdentity(ownerLogin);
     SendMail(ownerMail, "Your mission was taken for completion", string.Format(MailTemplates.MissionTakenForCompletion, ownerName, takenBy, missionName));
 }
 public static void NotifyMissionOwnerMissionCompleted(int missionId, string completedBy)
 {
     var missionDal = new MissionsDal();
     string ownerLogin = missionDal.GetMissionOwnerLoginName(missionId);
     string missionName = missionDal.GetMissionName(missionId);
     var ownerMail = Account.AuthProvider.GetMailByLogin(ownerLogin);
     var ownerName = Account.AuthProvider.GetUserFullNameByDomainIdentity(ownerLogin);
     SendMail(ownerMail, "Your mission has been completed", string.Format(MailTemplates.MissionCompleted, ownerName, completedBy, missionName));
 }