示例#1
0
        public static DataTable TextSearch(string textSearch)
        {
            DAttorney obj = new DAttorney();

            obj.TextSearch = textSearch;
            return(obj.SearchName(obj));
        }
示例#2
0
        public static string Delete(int id)
        {
            DAttorney obj = new DAttorney();

            obj.Id = id;
            return(obj.Delete(obj));
        }
示例#3
0
        public static string Insert(string name, string lastname, string rfc, string address, string cedula)
        {
            DAttorney obj = new DAttorney();

            obj.Name     = name;
            obj.Lastname = lastname;
            obj.Rfc      = rfc;
            obj.Address  = address;
            obj.Cedula   = cedula;
            return(obj.Insert(obj));
        }
示例#4
0
        public static string update(int id, string name, string lastname, string rfc, string address, string cedula)
        {
            DAttorney obj = new DAttorney();

            obj.Id       = id;
            obj.Name     = name;
            obj.Lastname = lastname;
            obj.Rfc      = rfc;
            obj.Address  = address;
            obj.Cedula   = cedula;
            return(obj.Update(obj));
        }