Example #1
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            RouteConfig.RegisterRoutes(RouteTable.Routes);

            HttpContext context = HttpContext.Current;

            ServiceAuto.SetService(0.1);
        }
Example #2
0
 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);
     }
 }
Example #3
0
 public AutoDto GetAutoById(int id)
 {
     WriteActualMethod();
     return(DtoConverter.ConvertToDto(ServiceAuto.getAutoByID(id)));
 }
Example #4
0
 public AutoDto InsertAuto(AutoDto auto)
 {
     WriteActualMethod();
     return(DtoConverter.ConvertToDto(ServiceAuto.InsertAuto(DtoConverter.ConvertToEntity(auto))));
 }
Example #5
0
 public void DeleteAuto(AutoDto auto)
 {
     WriteActualMethod();
     ServiceAuto.DeleteAuto(DtoConverter.ConvertToEntity(auto));
 }