public virtual ApiUserRoleResponseModel MapBOToModel( BOUserRole boUserRole) { var model = new ApiUserRoleResponseModel(); model.SetProperties(boUserRole.Id, boUserRole.JSON, boUserRole.Name); return(model); }
public virtual BOUserRole MapEFToBO( UserRole ef) { var bo = new BOUserRole(); bo.SetProperties( ef.Id, ef.JSON, ef.Name); return(bo); }
public virtual UserRole MapBOToEF( BOUserRole bo) { UserRole efUserRole = new UserRole(); efUserRole.SetProperties( bo.Id, bo.JSON, bo.Name); return(efUserRole); }
public virtual BOUserRole MapModelToBO( string id, ApiUserRoleRequestModel model ) { BOUserRole boUserRole = new BOUserRole(); boUserRole.SetProperties( id, model.JSON, model.Name); return(boUserRole); }