public virtual ApiFeedResponseModel MapBOToModel( BOFeed boFeed) { var model = new ApiFeedResponseModel(); model.SetProperties(boFeed.Id, boFeed.FeedType, boFeed.FeedUri, boFeed.JSON, boFeed.Name); return(model); }
public virtual BOFeed MapEFToBO( Feed ef) { var bo = new BOFeed(); bo.SetProperties( ef.Id, ef.FeedType, ef.FeedUri, ef.JSON, ef.Name); return(bo); }
public virtual Feed MapBOToEF( BOFeed bo) { Feed efFeed = new Feed(); efFeed.SetProperties( bo.FeedType, bo.FeedUri, bo.Id, bo.JSON, bo.Name); return(efFeed); }
public virtual BOFeed MapModelToBO( string id, ApiFeedRequestModel model ) { BOFeed boFeed = new BOFeed(); boFeed.SetProperties( id, model.FeedType, model.FeedUri, model.JSON, model.Name); return(boFeed); }