public static bool SavePostingType(ATTPostingType ObjAtt) { try { return(DLLPostingType.SavePostingType(ObjAtt)); } catch (Exception ex) { throw ex; } }
public static bool DeletePostingType(int PostingTypeID) { try { return(DLLPostingType.DeletePostingType(PostingTypeID)); } catch (Exception ex) { throw ex; } }
public static List <ATTPostingType> GetPostingType(int?PostingTypeId, string active) { List <ATTPostingType> lstPostingType = new List <ATTPostingType>(); try { foreach (DataRow row in DLLPostingType.GetPostingType(PostingTypeId, active).Rows) { ATTPostingType ObjAtt = new ATTPostingType ( int.Parse(row["POSTING_TYPE_ID"].ToString()), row["POSTING_TYPE_NAME"].ToString(), (row["ACTIVE"] == System.DBNull.Value) ? "" : (string)row["ACTIVE"] ); lstPostingType.Add(ObjAtt); } return(lstPostingType); } catch (Exception ex) { throw ex; } }