public static UnitOfJob_Infra UnitOfJobFromDomainToInfra(this UnitOfJob_Domain @this)
 {
     if (@this != null)
     {
         return(new UnitOfJob_Infra()
         {
             Id = @this.Id,
             TitleOfUnit = @this.TitleOfUnit
         });
     }
     else
     {
         return(null);
     }
 }
 public void UpdateUnit(UnitOfJob_Domain inst)
 {
     repository.UpdateUnit(inst.UnitOfJobFromDomainToInfra());
 }