private static Protocol GetProtocolo(ServicoServices model, Person pessoa, List <Histories> statuses) { Protocol protocolo = new Protocol { CreateDate = Formatacao.StringDateToDate(model.Date), UpdateDate = Formatacao.StringDateToDate(model.UpdateDate), Name = model.Name, Person = pessoa, History = statuses, Codigo = model.Codigo, Id = model.Id }; return(protocolo); }