Added adaptFromModel to IAdaptable
This commit is contained in:
parent
890c521675
commit
bce57e4cf0
@ -26,5 +26,13 @@ namespace API.DTO.Base
|
|||||||
name = name
|
name = name
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
public void adaptFromModel(in Color model)
|
||||||
|
{
|
||||||
|
id = model.id;
|
||||||
|
red = model.red;
|
||||||
|
blue = model.blue;
|
||||||
|
green = model.green;
|
||||||
|
name = model.name;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -33,5 +33,9 @@ namespace API.DTO.Base
|
|||||||
updater = updater
|
updater = updater
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
public void adaptFromModel(in Event model)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -27,5 +27,9 @@ namespace API.DTO.Base
|
|||||||
updater = updater
|
updater = updater
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
public void adaptFromModel(in Grant model)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -28,5 +28,9 @@ namespace API.DTO.Base
|
|||||||
updater = updater
|
updater = updater
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
public void adaptFromModel(in Image model)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,5 +24,9 @@ namespace API.DTO.Base
|
|||||||
updater = updater
|
updater = updater
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
public void adaptFromModel(in Permission model)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -33,5 +33,9 @@ namespace API.DTO.Base
|
|||||||
updater = updater
|
updater = updater
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
public void adaptFromModel(in SavedEvent model)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -34,5 +34,9 @@ namespace API.DTO.Base
|
|||||||
updater = updater
|
updater = updater
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
public void adaptFromModel(in User model)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,5 +3,6 @@ namespace API.DTO
|
|||||||
public interface IAdaptable<TModel>
|
public interface IAdaptable<TModel>
|
||||||
{
|
{
|
||||||
TModel adaptToModel();
|
TModel adaptToModel();
|
||||||
|
void adaptFromModel(in TModel model);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user