public Result Save(SoftwareRoleDTO obj) { try { using (DbCommand cmd = Common.dbConn.GetStoredProcCommand("MSTSoftwareRoleSave")) { Common.dbConn.AddInParameter(cmd, "Id", DbType.Int32, obj.Id); Common.dbConn.AddInParameter(cmd, "SoftwareRole", DbType.String, obj.SoftwareRole); Common.dbConn.ExecuteNonQuery(cmd); return(new Result { Id = 1, Message = "Saved", ResultStatus = OperationStatus.SavedSuccessFully }); } } catch (Exception exception) { throw exception; } return(null); }
public Result Save(ERPDTOBase obj) { SoftwareRoleDTO accountGroup = obj as SoftwareRoleDTO; return(new SoftwareRoleDAL().Save(accountGroup)); }