implemented adaptFromModel into remaining DTOS
This commit is contained in:
parent
08efea943c
commit
d5642e4744
@ -23,7 +23,9 @@ namespace API.DTO.Base
|
|||||||
red = red,
|
red = red,
|
||||||
blue = blue,
|
blue = blue,
|
||||||
green = green,
|
green = green,
|
||||||
name = name
|
name = name,
|
||||||
|
updated = updated,
|
||||||
|
updater = updater
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
public void adaptFromModel(in Color model)
|
public void adaptFromModel(in Color model)
|
||||||
@ -33,6 +35,8 @@ namespace API.DTO.Base
|
|||||||
blue = model.blue;
|
blue = model.blue;
|
||||||
green = model.green;
|
green = model.green;
|
||||||
name = model.name;
|
name = model.name;
|
||||||
|
updated = model.updated;
|
||||||
|
updater = model.updater;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,15 @@ namespace API.DTO.Base
|
|||||||
}
|
}
|
||||||
public void adaptFromModel(in Event model)
|
public void adaptFromModel(in Event model)
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
id = model.id;
|
||||||
|
savedEventId = model.savedEventId;
|
||||||
|
name = model.name;
|
||||||
|
bgColorId = model.bgColorId;
|
||||||
|
fgColorId = model.fgColorId;
|
||||||
|
imageId = model.imageId;
|
||||||
|
hidden = model.hidden;
|
||||||
|
updated = model.updated;
|
||||||
|
updater = model.updater;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,11 @@ namespace API.DTO.Base
|
|||||||
}
|
}
|
||||||
public void adaptFromModel(in Grant model)
|
public void adaptFromModel(in Grant model)
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
id = model.id;
|
||||||
|
name = model.name;
|
||||||
|
permissionId = model.permissionId;
|
||||||
|
updated = model.updated;
|
||||||
|
updater = model.updater;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,11 @@ namespace API.DTO.Base
|
|||||||
}
|
}
|
||||||
public void adaptFromModel(in Image model)
|
public void adaptFromModel(in Image model)
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
id = model.id;
|
||||||
|
name = model.name;
|
||||||
|
filename = model.filename;
|
||||||
|
updated = model.updated;
|
||||||
|
updater = model.updater;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,10 @@ namespace API.DTO.Base
|
|||||||
}
|
}
|
||||||
public void adaptFromModel(in Permission model)
|
public void adaptFromModel(in Permission model)
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
id = model.id;
|
||||||
|
name = model.name;
|
||||||
|
updated = model.updated;
|
||||||
|
updater = model.updater;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,13 @@ namespace API.DTO.Base
|
|||||||
}
|
}
|
||||||
public void adaptFromModel(in SavedEvent model)
|
public void adaptFromModel(in SavedEvent model)
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
id = model.id;
|
||||||
|
name = model.name;
|
||||||
|
bgColorId = model.bgColorId;
|
||||||
|
fgColorId = model.fgColorId;
|
||||||
|
imageId = model.imageId;
|
||||||
|
updated = model.updated;
|
||||||
|
updater = model.updater;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,13 @@ namespace API.DTO.Base
|
|||||||
}
|
}
|
||||||
public void adaptFromModel(in User model)
|
public void adaptFromModel(in User model)
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
id = model.id;
|
||||||
|
firstName = model.firstName;
|
||||||
|
lastName = model.lastName;
|
||||||
|
phoneNumber = model.phoneNumber;
|
||||||
|
permissionId = model.permissionId;
|
||||||
|
updated = model.updated;
|
||||||
|
updater = model.updater;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user