public shop_type find_shop_type_By_ID(int id) { try { shop_type = db.shop_types.SingleOrDefault(a => a.id == id); return(shop_type); } catch (Exception) { return(null); } }
public shop_type find_shop_type_By_AppId(string Appid) { try { shop_type = db.shop_types.SingleOrDefault(a => a.app_id == Appid); return(shop_type); } catch (Exception) { return(null); } }
public shop_type delete_shop_type() { try { shop_type prev_shop_type = db.shop_types.SingleOrDefault(a => a.id == shop_type.id); db.shop_types.DeleteOnSubmit(prev_shop_type); return(shop_type); } catch (Exception) { return(null); } }
public shop_type alter_shop_type() { try { shop_type prev_shop_type = db.shop_types.SingleOrDefault(a => a.id == shop_type.id); prev_shop_type.code = shop_type.code; prev_shop_type.name = shop_type.name; db.SubmitChanges(); return(shop_type); } catch (Exception) { return(null); } }
public shop_type_crd(shop_type shop_type_) { this.shop_type_ = shop_type_; }