//public IEnumerable<string> Get() //{ // return new string[] { "Abdul", "Nirmal", "Adeel" }; //} public IEnumerable <Designation> Get() { List <Designation> lt = _designationRepository.GetAllDesignations().ToList(); return(lt); }
//public IEnumerable<string> Get() //{ // return new string[] { "Abdul", "Nirmal", "Adeel" }; //} public IEnumerable <Designation> Get() { IEnumerable <Designation> lst = _designationRepository.GetAllDesignations(); return(lst); }