public void Create(Customer model) { InputHelper.Trimmer(model); model.CellphoneNumber = $"+63{model.CellphoneNumber}"; model.DateTimeCreated = DateTime.Now; _context.Add(model); }
public void Create(User model) { InputHelper.Trimmer(model); model.Password = AES.Encrypt("_defaultPassword"); model.DateTimeCreated = DateTime.Now; _context.Add(model); }
public void Create(City model) { InputHelper.Trimmer(model); _context.Add(model); }
public void Create(Employee model) { InputHelper.Trimmer(model); model.DateTimeCreated = DateTime.Now; _context.Add(model); }
public void Create(WorkLocation model) { InputHelper.Trimmer(model); _context.Add(model); }