public static Survey Map(this SurveyCommand surveyCommand) { return(new Survey() { Id = surveyCommand.Id, PBLSiteNumber = surveyCommand.PBLSiteNumber, Brand = surveyCommand.Brand, SiteAddress = surveyCommand.SiteAddress, SiteCity = surveyCommand.SiteCity, SiteState = surveyCommand.SiteState, SiteZipcode = surveyCommand.SiteZipcode, SurveyDate = surveyCommand.SurveyDate, }); }
public void Post([FromBody] SurveyCommand survey) { _dispatcher.Execute <SurveyCommand>(survey); }