public LawsEntity Create(LawsEntity model)
        {
            model.id         = Guid.NewGuid();
            model.deleted_at = null;
            _context.laws.Add(model);
            _context.SaveChanges();

            return(model);
        }
        public LawsEntity Update(Guid id, LawsEntity modelUpdate)
        {
            var data = _context.laws.Find(id);

            data.name      = modelUpdate.name;
            data.note      = modelUpdate.note;
            data.is_active = modelUpdate.is_active;
            //data.created_by = modelUpdate.created_by;
            //data.created_at = modelUpdate.created_at;
            data.updated_by = modelUpdate.updated_by;
            data.updated_at = DateTime.Now;

            _context.SaveChanges();

            return(data);
        }