Exemple #1
0
 public static TypeOfObject_Infra TypeOfObjectFromDomainToInfra(this TypeOfObject_Domain @this)
 {
     if (@this != null)
     {
         return(new TypeOfObject_Infra()
         {
             Id = @this.Id,
             TitleOfTypeOfObject = @this.TitleOfTypeOfObject,
             ImgSrc = @this.ImgSrc,
             DescriptionOfTypeOfObject = @this.DescriptionOfTypeOfObject
         });
     }
     else
     {
         return(null);
     }
 }
 public void UpdateTypeOfObject(TypeOfObject_Domain inst)
 {
     repository.UpdateTypeOfObject(inst.TypeOfObjectFromDomainToInfra());
 }