//[HttpGet("Api/GetFaculty")] //[Route("api/GetFaculty")] public IActionResult GetFaculty() { var db = _repository.GetAllFaculty(); var vm = new List <FacultyProfileApiModel>(); foreach (var x in db) { var viewModel = Mapper.Map <FacultyProfileApiModel>(x); viewModel.DisclosureComplete = DisclosureComplete(x); viewModel.ProfileComplete = ProfileComplete(x); vm.Add(viewModel); } return(Ok(vm)); }