Example #1
0
        public IHttpActionResult SearchTutorsByName(string firstName, string lastName)
        {
            List <Tutor> tutors = new List <Tutor>();

            try
            {
                tutors = studentFcd.SearchTutorByName(firstName, lastName);
                return(Ok(tutors));
            }
            catch (Exception ex)
            {
                log.Error($"Exception has been thrown: {ex.Message}");
                throw ex;
            }
        }