public static DataTable TextSearch(string textSearch) { DAttorney obj = new DAttorney(); obj.TextSearch = textSearch; return(obj.SearchName(obj)); }
public static string Delete(int id) { DAttorney obj = new DAttorney(); obj.Id = id; return(obj.Delete(obj)); }
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)); }
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)); }