public static AthletesResponse CreateSavedChildResponse(Model.Child c) { return(new AthletesResponse { Type = AthletesResponseType.SavedChild, Child = CreateProtobufChild(c) }); }
public static AthletesResponse CreateNewChildResponse(Model.Child c) { return(new AthletesResponse { Type = AthletesResponseType.NewChild, Child = new Child { Id = c.ID, Age = c.Age, IdEvent1 = c.IdEvent1, IdEvent2 = c.IdEvent2, Name = c.Name } }); }
private static Child CreateProtobufChild(Model.Child c) { return(new Child { Id = c.ID, Age = c.Age, IdEvent1 = c.IdEvent1, IdEvent2 = c.IdEvent2, Name = c.Name }); }