public static Photo_Infra PhotoFromDomainToInfra(this Photo_Domain @this) { if (@this != null) { return(new Photo_Infra() { Id = @this.Id, ImgSrc = @this.ImgSrc, ImgSrcMini = @this.ImgSrcMini, Repareobject_InfraId = @this.Repareobject_DomainId }); } else { return(null); } }
public void UpdatePhoto(Photo_Domain inst) { repository.UpdatePhoto(inst.PhotoFromDomainToInfra()); }