public Student(string Name, int group, int gpa, Gender gender, EducationForm educationForm, int familySalary) { name = Name; Gpa = gpa; Gender = gender; EducationForm = educationForm; FamilySalary = familySalary; }
public Student(string fullName, string group, double avgGrade, int profit, Gender gender, EducationForm form) { FullName = fullName; Group = group; AverageGrade = avgGrade; Profit = profit; Gender = gender; Form = form; }
public async Task Post(EducationForm _educationForm) { _educationForm.CreateDate = GetDate; await aztuAkademik.EducationForm.AddAsync(_educationForm).ConfigureAwait(false); await aztuAkademik.SaveChangesAsync().ConfigureAwait(false); await Classes.TLog.Log("EducationForm", "", _educationForm.Id, 1, User_Id, IpAdress, AInformation).ConfigureAwait(false); }
public async Task Delete(short id) { EducationForm educationForm = await aztuAkademik.EducationForm.FirstOrDefaultAsync(x => x.Id == id).ConfigureAwait(false); educationForm.DeleteDate = GetDate; educationForm.StatusId = 0; await aztuAkademik.SaveChangesAsync().ConfigureAwait(false); await Classes.TLog.Log("EducationForm", "", id, 3, User_Id, IpAdress, AInformation).ConfigureAwait(false); }
public async Task <int> Put(EducationForm _educationForm) { if (ModelState.IsValid) { _educationForm.UpdateDate = GetDate; aztuAkademik.Attach(_educationForm); aztuAkademik.Entry(_educationForm).State = Microsoft.EntityFrameworkCore.EntityState.Modified; aztuAkademik.Entry(_educationForm).Property(x => x.CreateDate).IsModified = false; await aztuAkademik.SaveChangesAsync().ConfigureAwait(false); await Classes.TLog.Log("EducationForm", "", _educationForm.Id, 2, User_Id, IpAdress, AInformation).ConfigureAwait(false); return(1); } return(0); }
public AdmissionStatistic(EducationForm educationForm, bool isTodayStatistic = false) { _educationForm = educationForm; _isTodayStatistic = isTodayStatistic; }
public GeneralizedEntrantList(EducationForm educationForm) { _educationForm = educationForm; }
private string EducationFormToString(EducationForm form) { return(form == EducationForm.DAILY ? "дневная" : "заочная"); }
public PublicEntrantList(EducationForm educationForm) { _educationForm = educationForm; }