/// <summary> /// The Function is used for Inserting or Updating the data of the PostType /// </summary> /// <param name="objPostTypeBE">Object of PostTypebe to be stored</param> /// <returns>Returns the ID of the changed Record</returns> public static int Save(PostTypeBE objPostTypeBE) { List<GenralizeParametre> ObjListPostTypeParam = new List<GenralizeParametre>(); ObjListPostTypeParam.Add(new GenralizeParametre("PostTypeId", objPostTypeBE.PostTypeId, DbType.Int32)); ObjListPostTypeParam.Add(new GenralizeParametre("PostTypeName", objPostTypeBE.PostTypeName, DbType.String)); objPostTypeBE.PostTypeId = GenralizeStoredProcedure.GetInt(spPostTypeSave, ObjListPostTypeParam); return objPostTypeBE.PostTypeId; }
private static PostTypeBE FillDataRecord(IDataRecord dr) { PostTypeBE objPostTypeBE = new PostTypeBE(); if (!dr.IsDBNull(dr.GetOrdinal("PostTypeId"))) { objPostTypeBE.PostTypeId = dr.GetInt32(dr.GetOrdinal("PostTypeId")); } if (!dr.IsDBNull(dr.GetOrdinal("PostTypeName"))) { objPostTypeBE.PostTypeName = dr.GetString(dr.GetOrdinal("PostTypeName")); } return objPostTypeBE; }