private static List <Histories> GetHistories(ServicoServices model) { List <Histories> statuses = new List <Histories>(); if (model.Histories != null) { foreach (var item in model.Histories) { Histories status = new Histories { UpdateDate = Formatacao.StringDateFormat(item.UpdateDate, "g"), Employee = item.Employee, EmployeeMail = item.EmployeeMail, Status = item.Status }; statuses.Add(status); } } return(statuses); }