protected void Application_Start() { AreaRegistration.RegisterAllAreas(); RouteConfig.RegisterRoutes(RouteTable.Routes); HttpContext context = HttpContext.Current; ServiceAuto.SetService(0.1); }
public AutoDto UpdateAuto(AutoDto auto) { try { WriteActualMethod(); return(DtoConverter.ConvertToDto(ServiceAuto.UpdateAuto(DtoConverter.ConvertToEntity(auto)))); } catch (OptimisticConcurrencyException <Auto> ex) { throw new FaultException <AutoDto>(ex.MergedEntity.ConvertToDto(), ex.Message); } }
public AutoDto GetAutoById(int id) { WriteActualMethod(); return(DtoConverter.ConvertToDto(ServiceAuto.getAutoByID(id))); }
public AutoDto InsertAuto(AutoDto auto) { WriteActualMethod(); return(DtoConverter.ConvertToDto(ServiceAuto.InsertAuto(DtoConverter.ConvertToEntity(auto)))); }
public void DeleteAuto(AutoDto auto) { WriteActualMethod(); ServiceAuto.DeleteAuto(DtoConverter.ConvertToEntity(auto)); }