public bool DeleteLecturer(int Id)
        {
            bool        result = false;
            LecturerDTo obj    = _Lecturers.FirstOrDefault((LecturerDTo arg) => arg.Id == Id);

            if (obj != null)
            {
                _Lecturers.Remove(obj);
                result = true;
            }
            return(result);
        }
        public LecturerDTo UpdateLecturer(LecturerDTo newLecturer)
        {
            LecturerDTo result = _Lecturers.FirstOrDefault((LecturerDTo arg) => arg.Id == newLecturer.Id);

            if (result != null)
            {
                result.Name    = newLecturer.Name;
                result.Payroll = newLecturer.Payroll;
                result.Message = newLecturer.Message;
            }
            return(result);
        }
        public LecturerDTo GetLecturerById(int Id)
        {
            LecturerDTo result = _Lecturers.FirstOrDefault((LecturerDTo arg) => arg.Id == Id);

            return(result);
        }
 public void AddLecturer(LecturerDTo newLecturer)
 {
     _Lecturers.Add(newLecturer);
 }
 public void Put(int id, [FromBody] LecturerDTo value)
 {
     SchoolDataStore.Instance().AddLecturer(value);
 }
 public void Post([FromBody] LecturerDTo value)
 {
     SchoolDataStore.Instance().UpdateLecturer(value);
 }