public DomainStatusContract RemoveMovieType(int id) { try { using (var context = new MovieShelfEntities(ConfigurationManager.ConnectionStrings["TestConnection"].ConnectionString)) { var provider = new MovieTypeDal(context); var process = new MovieTypeProcess(provider); var service = new MovieTypeService(process); var result = service.Remove(id); return DomainStatus.ConvertToContract(result); } } catch (Exception exception) { return HandleExceptionResponse(exception); } }