//Para levantar los datos public Provider(string id, string name, string phone, string address, string email, BasicEntity contact, string creationDate, string modificationDate, string status) { this.Id = new Guid(id); this.Name = name; this.Phone = phone; this.Address = address; this.Email = email; if (!string.IsNullOrEmpty(creationDate)) { this.CreationDate = DateTime.ParseExact(creationDate, "yyyyMMdd", CultureInfo.InvariantCulture); } if (!string.IsNullOrEmpty(modificationDate)) { this.ModificationDate = DateTime.ParseExact(modificationDate, "yyyyMMdd", CultureInfo.InvariantCulture); } this.Status = (Status)Convert.ToInt32(status); this.Contact = contact; }