public bool Delete(EntityHandler.RolePermissions obj) { bool Status = false; try { Status = new DataAccessHandler.RolePermissions().Delete(obj); } catch (Exception ex) { } return(Status); }
public DataTable SelectAll(EntityHandler.RolePermissions obj) { DataTable dt = new DataTable(); try { string SqlCommand = ""; dt = new DALBase().Select(SqlCommand); } catch (Exception ex) { } return(dt); }
public bool Delete(EntityHandler.RolePermissions obj) { bool Status = false; try { string SqlCommand = ""; Status = new DALBase().Update(SqlCommand); } catch (Exception ex) { } return(Status); }
public List <EntityHandler.RolePermissions> SelectAll(EntityHandler.RolePermissions obj) { List <EntityHandler.RolePermissions> listobj = new List <EntityHandler.RolePermissions>(); try { DataTable dt = new DataAccessHandler.RolePermissions().SelectAll(obj); for (int i = 0; i < dt.Rows.Count; i++) { listobj.Add(ConvertToObject(dt.Rows[i])); } } catch (Exception ex) { } return(listobj); }
private EntityHandler.RolePermissions ConvertToObject(DataRow row) { EntityHandler.RolePermissions obj = new EntityHandler.RolePermissions(); try { obj.PermID = row["PermID"].ToString(); obj.PermName = row["PermName"].ToString(); obj.HostID = row["HostID"].ToString(); obj.ModifiedDate = Convert.ToDateTime(row["ModifiedDate"].ToString()); obj.ModifiedUser = Convert.ToInt32(row["ModifiedUser"].ToString()); obj.CreatedDate = Convert.ToDateTime(row["CreatedDate"].ToString()); obj.CreatedUser = Convert.ToInt32(row["CreatedUser"].ToString()); } catch (Exception ex) { } return(obj); }
private EntityHandler.RolePermissions ConvertToObject(DataRow row) { EntityHandler.RolePermissions obj = new EntityHandler.RolePermissions(); try { obj.PermID = row["PermID"].ToString(); obj.PermName = row["PermName"].ToString(); obj.HostID = row["HostID"].ToString(); obj.ModifiedDate = Convert.ToDateTime(row["ModifiedDate"].ToString()); obj.ModifiedUser = Convert.ToInt32(row["ModifiedUser"].ToString()); obj.CreatedDate = Convert.ToDateTime(row["CreatedDate"].ToString()); obj.CreatedUser = Convert.ToInt32(row["CreatedUser"].ToString()); } catch (Exception ex) { } return obj; }