public IEnumerable <Researcher> GetResearchers()
        {
            var result = new List <Researcher>();

            foreach (Business.Logic.Researcher researcher in ResearcherManager.Instance().ResearcherList)
            {
                result.Add(new Researcher(researcher));
            }
            return(result);
        }
 public void DeleteResearcher(int researcherId)
 {
     ResearcherManager.Instance().DeleteResearcher(researcherId);
 }
 public void UpdateResearcher([FromBody] Researcher c)
 {
     ResearcherManager.Instance().UpdateResearcher(new Business.Logic.Researcher(c.ResearcherId, c.LastName, c.LastName, c.LastName,
                                                                                 c.DepartmentNumber, c.Age, c.AcademicDegree, c.Position));
 }
 public int AddResearcher([FromBody] Researcher researcher)
 {
     return(ResearcherManager.Instance().AddResearcher(researcher.LastName, researcher.FirstName, researcher.MiddleName, researcher.DepartmentNumber, researcher.Age, researcher.AcademicDegree, researcher.Position));
 }