public static MVC.ProjectStatusInfo MapBusinessToMvc(BL.ProjectStatusInfo source) { if (source == null) { return(null); } MVC.ProjectStatusInfo target = new MVC.ProjectStatusInfo(); target.ProjectStatusInfoId = source.Id; target.ProjectStatusInfoVersion = source.Version; target.ProjectStatusInfoOwner = source.Owner; target.ProjectStatusInfoUpdated = source.Updated; target.ProjectStatusInfoGoal = source.Goal; target.Measurements = MapProjectMeasurement.MapBusinessToMvcList(source.Measurements); target.Actions = MapProjectAction.MapBusinessToMvcList(source.Actions); target.InterestGroups = MapInterestGroup.MapBusinessToMvcList(source.InterestGroups); target.Results = MapProjectResult.MapBusinessToMvcList(source.Results); target.ChallengesAndExceptions = MapProjectChallenge.MapBusinessToMvcList(source.ChallengesAndExceptions); target.CounterActions = MapCounterAction.MapBusinessToMvcList(source.CounterActions); return(target); }