public DomainListContract<RatingTypeContract> FetchAllRatingTypes(bool includeDeletion) { try { using (var context = new MovieShelfEntities(ConfigurationManager.ConnectionStrings["TestConnection"].ConnectionString)) { var provider = new RatingTypeDal(context); var process = new RatingTypeProcess(provider); var service = new RatingTypeService(process); var result = service.GetAll(includeDeletion); var returnResult = new RatingType().ConvertToContract<RatingType, IEnumerable<RatingType>, RatingTypeContract>(result); return returnResult; } } catch (Exception exception) { return HandleExceptionResponse<RatingTypeContract>(exception); } }