public EfAdmins Toentity(JsonAdmins domainObject) { var entity = new EfAdmins(); Fillentity(entity, domainObject); return(entity); }
public JsonAdmins ToDomainObject(EfAdmins entity) { JsonAdmins admins = new JsonAdmins(); admins.ID = entity.ID.ToString(); admins.IDUser = entity.IDUser.ToString(); admins.UserName = new UserTranslator().ToDomainObject(entity.UserID).UserName; return(admins); }
public void Fillentity(EfAdmins entity, JsonAdmins domainObject) { entity.ID = Guid.Parse(domainObject.ID); entity.IDUser = Guid.Parse(domainObject.IDUser); }